Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(da-clients): add EigenDA client #3155

Merged
merged 24 commits into from
Oct 29, 2024
Merged

feat(da-clients): add EigenDA client #3155

merged 24 commits into from
Oct 29, 2024

Conversation

dimazhornyk
Copy link
Contributor

@dimazhornyk dimazhornyk commented Oct 23, 2024

What ❔

This PR adds an EigenDA client.

The implementation uses the gRPC streams to send the authenticated requests to dispatch the blob.
The protogen situation is very similar to Celestia, we use the generated files as a temporary solution until there is a separate crate that provides those.

This kind of function can be used to generate them in the future:

pub fn compile_protos() {
    let fds = protox::compile(
        [
            "proto/common.proto",
            "proto/disperser.proto",
        ],
        ["."],
    )
    .expect("protox failed to build");

    tonic_build::configure()
        .build_client(true)
        .build_server(false)
        .skip_protoc_run()
        .out_dir("generated")
        .compile_fds(fds)
        .unwrap();
}

Example config:

da_client:
  eigen:
    rpc_node_url: https://disperser-holesky.eigenda.xyz:443
    inclusion_polling_interval_ms: 10000

secrets:

da:
  eigen:
    private_key: PRIVATE_KEY_WITHOUT_0x_PREFIX

Why ❔

To enable EigenDA in ZK stack

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

@dimazhornyk dimazhornyk marked this pull request as draft October 23, 2024 10:43
@dimazhornyk dimazhornyk marked this pull request as ready for review October 28, 2024 13:56
Base automatically changed from dz-add-celestia-client to main October 29, 2024 12:08
@dimazhornyk dimazhornyk added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit 5161eed Oct 29, 2024
33 checks passed
@dimazhornyk dimazhornyk deleted the dz-eigenda-client branch October 29, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants